Hookswitch Types and States
ThehookType
parameter of theTELGetHooksw
andTELSetHooksw
functions and themtype
parameter of thetelTermHookMsg
message provide information about the hookswitch type. These parameters can contain one of the following constants:
enum { telHandset = 1, telSpeakerphone = 2 };Constant descriptions
The
telHandset
- The terminal device is the handset.
telSpeakerphone
- The terminal device is the speakerphone.
- Note
- Hookswitch type values in the range 3 through 255 are reserved for use by the Telephone Manager. Hookswitch type values in the range 256 through 32768 are available for use by telephone tools.
![]()
offHook
parameter of theTELGetHooksw
andTELSetHooksw
functions and thevalue
parameter of thetelTermHookMsg
message indicate whether the hookswitch state is on or off:
enum { telDeviceOffHook = 1, telDeviceOnHook = 0 };Constant descriptions
telDeviceOffHook
- The terminal device is off hook.
telDeviceOnHook
- The terminal device is on hook.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help